<!--
/**************************************************
* @ busorderrefundview.jsp
*
* Copyright   2005 Hitrust Technology Inc.
* Developed by SDC, Hitrust.
* All Rights Reserved.
*
* Modify History:
*  v1.00, 2006/03/17, owen
*   
/**************************************************
-->
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="../../../common.jsp" %>
<%@ taglib uri="/page.util.gs.hitrust.com/taglibs/page" prefix="page"%>
<html>
<head>
<title>退货管理</title>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="<%=root%>/css/caigouxitong.css" type=text/css rel=stylesheet>
<SCRIPT language="JavaScript" src="<%=root%>/js/common.js"></SCRIPT>
<SCRIPT language="JavaScript" src="<%=root%>/js/calendar.js"></SCRIPT>
<%  
   ArrayList tManuf1 = (ArrayList)request.getAttribute("manufacture1");
   HashMap tMap1 = (HashMap)request.getAttribute("manufacturetyp2");
   HashMap tMap2 = (HashMap)request.getAttribute("manufacturetyp3");
   
   HashMap tMap = (HashMap)request.getAttribute("orderdept");
   ArrayList tOrderDeptList = (ArrayList)tMap.get("organization");

   ResultProcess tOrder = (ResultProcess)request.getAttribute("order");
   String isRequery = (String)request.getAttribute("requery");
   ArrayList tList1 = new ArrayList();
   String [] tStr = null;
   int size=0;
%>
<script>

	var counter;
	function process(val)
	{
		if(val == 'Q')
		{
			var tStr = "";		
			var tEnd = "";				
			if(!isEmpty(orderrefundform.orderCreateDateStr.value))
			{
				tStr = orderrefundform.orderCreateDateStr.value.substr(0,4) + orderrefundform.orderCreateDateStr.value.substr(5,2) + orderrefundform.orderCreateDateStr.value.substr(8,2);
			}
			if(!isEmpty(orderrefundform.orderCreateDateEnd.value))
			{
				tEnd = orderrefundform.orderCreateDateEnd.value.substr(0,4) + orderrefundform.orderCreateDateEnd.value.substr(5,2) + orderrefundform.orderCreateDateEnd.value.substr(8,2);						
			}
			if(parseInt(tStr) > parseInt(tEnd)){
				alert("订单创建周期的开始日期不能大于截止日期！");
				return false;
			}		
			orderrefundform.action = "<%= response.encodeURL(request.getContextPath() + "/A155002.do") %>";
    		orderrefundform.submit();			
		}
		else if(val == 'C')
		{
			orderrefundform.orderdetailId.value ="";
			orderrefundform.orderStatus.value="00";			
			orderrefundform.orderDeptId.value="0000";
			
			var listbox1 = document.getElementById("deliverGoodsAddrId2");
			listbox1.length = 0;
			var option1 = new Option();
			option1.text = "---全部---";
			option1.value = "0000";			
			listbox1.options[listbox1.length] = option1;
			
			orderrefundform.manuftype1.value="0";
			var listbox2 = document.getElementById("manuftype2Id");
			listbox2.length = 0;
			var option2 = new Option();
			option2.text = "---二级---";
			option2.value = "0";			
			listbox2.options[listbox2.length] = option2;
			
			var listbox3 = document.getElementById("manuftype3Id");
			listbox3.length = 0;
			var option3 = new Option();
			option3.text = "---三级---";
			option3.value = "0";			
			listbox3.options[listbox3.length] = option3;
			
			orderrefundform.concentricityId.value = "";
			orderrefundform.providerId.value = "";
			orderrefundform.manufInfo.value = "";
			orderrefundform.orderCreateDateStr.value = "";						
			orderrefundform.orderCreateDateEnd.value = "";									
			return;
		}
		else if(val == 'T')
		{
	        var orderId;
		    if(document.pager.orderdetailId != null)
		    {
		        //alert(document.pager.orderdetailId.length);
				for(i=0; i<document.pager.orderdetailId.length;i++)
				{
					if(document.pager.orderdetailId[i].checked)
					{
						//document.form2.orderId[i].checked = true;
						//alert(document.pager.orderdetailId[i].value);
						orderId=document.pager.orderdetailId[i].value;
						//document.form2.orderId[i].value=document.pager.orderId[i].value;
					}
				}
			}
			if(document.pager.orderdetailId.checked==true)
			{
				//document.form2.orderdetailId.checked = true;
				orderId=document.pager.orderdetailId.value;
			}
			//alert(orderId); 
			if(orderId==null)
			{
			   	alert("请选择一个退货的订单。");
			   	return false;
			}   
		    if(confirm("是否确定订单退货？"))
		    {	
		      	var returnVal = showModalDialog('<%= response.encodeURL(request.getContextPath() + "/A155003.do") %>?orderId='+orderId,window,"status:no;unadorned:no;dialogWidth:900px;dialogHeight:1200px;help:no;");
			    if(returnVal != null)
			    {
//				    alert("订单退货执行成功!");
                        
                    //alert(returnVal[0]);
                    orderrefundresultform.contents.value = returnVal[0];
                    orderrefundresultform.orderid.value = returnVal[1];
                    orderrefundresultform.status.value = returnVal[2];
                    orderrefundresultform.isTradeFlatManuf.value = returnVal[3];
                    orderrefundresultform.isTradeFlatProvider.value = returnVal[4];
                    orderrefundresultform.refundcount.value = returnVal[5];
                  
					orderrefundresultform.orderdetailId.value = orderrefundform.orderdetailId.value;
					orderrefundresultform.providerId.value = orderrefundform.providerId.value;					
					orderrefundresultform.concentricityId.value = orderrefundform.concentricityId.value;
					orderrefundresultform.deliverGoodsAddrId.value = orderrefundform.deliverGoodsAddrId.value;
					orderrefundresultform.orderDeptId.value = orderrefundform.orderDeptId.value;
					orderrefundresultform.manuftype1.value = orderrefundform.manuftype1.value;
					orderrefundresultform.manuftype2.value = orderrefundform.manuftype2.value;
					orderrefundresultform.manuftype3.value = orderrefundform.manuftype3.value;
					orderrefundresultform.manufInfo.value = orderrefundform.manufInfo.value;
					orderrefundresultform.orderCreateDateStr.value = orderrefundform.orderCreateDateStr.value;																				
					orderrefundresultform.orderCreateDateEnd.value = orderrefundform.orderCreateDateEnd.value;	
					orderrefundresultform.orderStatus.value = orderrefundform.orderStatus.value;
                    orderrefundresultform.action = "<%= response.encodeURL(request.getContextPath() + "/A155004.do") %>";
	            	orderrefundresultform.submit();		      	
		      	 }
			 }
			 else
			 {
				 return false;
			 }
		} 
		else if(val == 'P')
		{
			 if(confirm("是否确定打印？"))
			 {
				 print_bill();//ordermanufacturevdetail.action = "<%=response.encodeURL(root+"/A100305.do")%>";			
			 }
			 else
			 {
				 return false;
			 }
		}
	}
	function change(optval)
	{
  		var val = optval;
		if(val=='0000'){
			var listbox = document.getElementById("deliverGoodsAddrId2");
			listbox.length = 0;
			var option = new Option();
			option.text = "---全部---";
			option.value = "0000";			
			listbox.options[listbox.length] = option;

		}else{
  	<%
  		if(tMap!=null){
	 	   	Collection tCollection = tMap.keySet();
	        Iterator tIterator = tCollection.iterator();
  		       while(tIterator.hasNext()){
  		           String tKey = (String)tIterator.next();
  		           tList1 = (ArrayList)tMap.get(tKey);
  	%>
  				if(val == '<%=tKey%>')
  				{
	  				var counter;
	  				var listbox = document.getElementById("deliverGoodsAddrId2");
					listbox.length = 0;
					var option = new Option();
					option.text = "---全部---";
					option.value = "0000";			
					listbox.options[listbox.length] = option;			  											
	<%					
						for(int n=0;n<tList1.size();n++){
						    tStr = (String[])tList1.get(n);
						    String addrId = tStr[0];
						    String addrName = tStr[1];
	%>				
							var temp1 = '<%=addrId%>';
							var temp2 = '<%=addrName%>';
							var option = new Option();
							option.value = temp1;
							option.text = temp2;
							listbox.options[listbox.length] = option;						
	<%
						}
	%>
  				}
  	<%
  		    }
  		       
  		}
  	%>
  		}	
	}			
	
	function change1(optval){
	  var val = optval;
	  if(val=='0'){
	    var listbox = document.getElementById("manuftype2Id");
	    listbox.length = 0;
	    var option = new Option();
	    option.text = "---二级---";
	    option.value = "0";
	    listbox.options[listbox.length] = option;
	    change2(optval);
	  }else{
	      var counter="0";
	    <%if(tMap1 !=null){
	      Collection tCollection = tMap1.keySet();
	      Iterator tIterator = tCollection.iterator();
	      while(tIterator.hasNext()){
	        String tKey = (String)tIterator.next();
	        tList1 = (ArrayList)tMap1.get(tKey);%>
	        if(val == '<%=tKey%>'){
			  counter = "1";
	          var listbox = document.getElementById("manuftype2Id");
	          listbox.length = 0;
	          var option = new Option();
	          option.value = "0";
	          option.text = "---二级---";
	          listbox.options[listbox.length] = option;
	          <%
		          	for(int n=0;n<tList1.size();n++){
			            GSManufactureCategoryBean tGSManufactureBean = (GSManufactureCategoryBean)tList1.get(n);
			            String categoryId = tGSManufactureBean.getGs_manufacture_category_id();
			            String categoryName = tGSManufactureBean.getGs_manufacture_category_name();%>
			            var temp1 = '<%=categoryId%>';
			            var temp2 = '<%=categoryName%>';
			            var option = new Option();
			            option.value = temp1;
			            option.text = temp2;
			            listbox.options[listbox.length] = option;
	           <%
		       		}
	           %>
				change2('0');           
	         }
	         
	    <%
	    	}
	    %>
	    	if(counter == '0'){
	          var listbox = document.getElementById("manuftype2Id");
	          listbox.length = 0;
	          var option = new Option();
	          option.value = "0";
	          option.text = "---二级---";
	          listbox.options[listbox.length] = option;  
	          change2('0');    	
	    	}
	    <%  
	    }
	    %>
	   }
	}
    
    function change2(optval)
    {
      var val = optval;
      if(val=='0'){
        var listbox = document.getElementById("manuftype3Id");
        listbox.length = 0;
        var option = new Option();
        option.text = "---三级---";
        option.value = "0";
        listbox.options[listbox.length] = option;

      }else{
      	var counter = "0";
        <%if(tMap2 !=null){
          Collection tCollection = tMap2.keySet();
          Iterator tIterator = tCollection.iterator();
          while(tIterator.hasNext()){
            String tKey = (String)tIterator.next();
            tList1 = (ArrayList)tMap2.get(tKey);%>
            if(val == '<%=tKey%>'){
              counter = "1";
              var listbox = document.getElementById("manuftype3Id");
              listbox.length = 0;
              var option = new Option();
              option.text = "---三级---";
              option.value = "0";
              listbox.options[listbox.length] = option;
              <%for(int n=0;n<tList1.size();n++){
                GSManufactureCategoryBean tGSManufactureBean = (GSManufactureCategoryBean)tList1.get(n);
                String categoryId = tGSManufactureBean.getGs_manufacture_category_id();
                String categoryName = tGSManufactureBean.getGs_manufacture_category_name();%>
                var temp1 = '<%=categoryId%>';
                var temp2 = '<%=categoryName%>';
                var option = new Option();
                option.value = temp1;
                option.text = temp2;
                listbox.options[listbox.length] = option;
                <%}%>
              }
          <%
          }
          %>
          if(counter == '0'){
		        var listbox = document.getElementById("manuftype3Id");
		        listbox.length = 0;
		        var option = new Option();
		        option.text = "---三级---";
		        option.value = "0";
		        listbox.options[listbox.length] = option;          
          }
          <%
            }%>
          }
        }	
		function control(){
			<%
				if(isRequery != null && isRequery.equals("true")){
			%>
			orderrefundform.action = "<%=response.encodeURL(root + "/A155002.do")%>";
    		orderrefundform.submit();		
			<%		
				}
			%>
		}        
</script>

</head>

<body BGCOLOR="#f2f2f2"	text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="control()">
<form name="orderrefundresultform" method="post">
	<input type="hidden" name="refundcount" >
	<input type="hidden" name="contents" >	
	<input type="hidden" name="orderid" >	
	<input type="hidden" name="status" >	
	<input type="hidden" name="isTradeFlatManuf" >	
	<input type="hidden" name="isTradeFlatProvider" >	
	<input type="hidden" name="orderdetailId" >	
	<input type="hidden" name="orderStatus" >	
	<input type="hidden" name="orderDeptId" >	
	<input type="hidden" name="deliverGoodsAddrId" >	
	<input type="hidden" name="concentricityId" >	
	<input type="hidden" name="manufInfo" >	
	<input type="hidden" name="providerId" >								
	<input type="hidden" name="manuftype3" >								
	<input type="hidden" name="manuftype2" >								
	<input type="hidden" name="manuftype1" >											
	<input type="hidden" name="orderCreateDateEnd" >											
	<input type="hidden" name="orderCreateDateStr" >													
	
</form>
<form name=orderrefundform method="get" >
<p><br></p>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr>
		<td height="20">
			<table width="100%" border="0" cellspacing="0" cellpadding="1">
				<tr height="20">
					<td height="30" width="758" class="mtxt_black">退货管理</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td class="bg_line" height="2"></td>
	</tr>
</table>
<br>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr> 
		<td> 
			<table class=bg_table id=tableId	cellspacing=1 cellpadding=0 style="padding-left:5;padding-right:5" width=100% align=center border=0>
				<TR height=20>
					<TD class="bg_column" align=center width="15%">订单明细编号</TD>
					<TD align=left class="bg_row_odd" width="35%"><input type="text" name="orderdetailId" value="<%=request.getParameter("orderdetailId")==null? "":request.getParameter("orderdetailId") %>" maxlength="20"></TD>					
					<TD class="bg_column" align=center>供应商</TD>
					<TD align=left class="bg_row_odd"><input type="text" name="providerId" maxlength="20" value="<%=request.getParameter("providerId")==null?"":request.getParameter("providerId")%>"></TD>	
				</TR>
				<TR height=20>							
					<TD class="bg_column" align=center>订货单位</TD>
					<TD left=right class="bg_row_odd">
						<select name="orderDeptId" onChange="change(this.value)">					
						<option value="0000" selected>---全部---</option>
						<%
							String tOrderDept = request.getParameter("orderDeptId");
							if(tOrderDeptList != null && tOrderDeptList.size() > 0 ){	
							    if(tOrderDept != null && tOrderDept.equals("0000")){
									for(int i=0; i<tOrderDeptList.size(); i++){
									    String[] temp = (String[])tOrderDeptList.get(i);
						%>
										<option value="<%=temp[0]%>"><%=temp[1]%></option>						
						<%			    
									}
							    }else{
									for(int i=0; i<tOrderDeptList.size(); i++){
									    String[] temp = (String[])tOrderDeptList.get(i);
										if(tOrderDept != null && tOrderDept.equals(temp[0])){
							%>
											<option value="<%=temp[0]%>" selected>
											<%=temp[1]%></option>
							<%				    
										}else{
							%>
											<option value="<%=temp[0]%>"><%=temp[1]%></option>
							<%			
										}
									}
							    }
							}

						%>
						</select>
					</TD>
					<TD class="bg_column" align=center>送货地址</TD>
					<TD align=left class="bg_row_odd" >
						<select name="deliverGoodsAddrId" id="deliverGoodsAddrId2">	
						<option value="0000">---全部---</option>
						<%
							String tDeliverGoodsAddrId = request.getParameter("deliverGoodsAddrId");
							if(tOrderDept!=null && !tOrderDept.equals("0000")){
							    ArrayList tDeliverGoodsAddr = (ArrayList)tMap.get(tOrderDept);
								for(int i=0; i<tDeliverGoodsAddr.size(); i++){
								    String[] temp = (String[])tDeliverGoodsAddr.get(i);
									if(tDeliverGoodsAddrId != null && tDeliverGoodsAddrId.equals(temp[0])){
						%>
										<option value="<%=temp[0]%>" selected><%=temp[1]%></option>
						<%				    
									}else{
						%>
										<option value="<%=temp[0]%>"><%=temp[1]%></option>
						<%			
									}
								}
							}
						%>
						</select>					
					</TD>						
				</TR>				
				<TR height=20>
					<TD class="bg_column" align=center>集中编码</TD>
					<TD align=left class="bg_row_odd" colspan=3>
					<input type="text" name="concentricityId" maxlength="20" value="<%=request.getParameter("concentricityId")==null?"":request.getParameter("concentricityId")%>">
					<!-- 订单为交货确认=12的订单才可以退货 -->
					<input type=hidden name="orderStatus" value="<%=com.hitrust.gs.lib.GSBaseConstants.ORDER_DELIVERY_CONFIRM%>">
					</TD>
			
				</TR>									
				<TR height=20>
					<TD class="bg_column" align=center>产品信息</TD>
					<TD align=left class="bg_row_odd" colspan="3">
					<input type="text" name="manufInfo" maxlength="200" value="<%=request.getParameter("manufInfo")==null?"":request.getParameter("manufInfo")%>">（<FONT color="#ff0033">对产品名称、型号、规格、品牌、生产厂商、附加属性等关键字的模糊查询</FONT>）&nbsp;
					</TD>
				</TR>	
				<TR height=20>	
					<TD class="bg_column" align=center>产品分类</TD>
					<TD align=left class="bg_row_odd" colspan="3">
					<select name="manuftype1" onChange="change1(this.value)">	
						<option value="0">---一级---</option>				
						<%
							String tManufType1 = request.getParameter("manuftype1");
							//int iManuType1 = 0;
							if(tManuf1 != null && tManuf1.size() > 0 ){
							    if(tManufType1 != null){
							        //iManuType1 = Integer.parseInt(tManufType1);
							    }
								for(int i=0; i<tManuf1.size(); i++){
								    GSManufactureCategoryBean tGSManufactureBean = (GSManufactureCategoryBean)tManuf1.get(i);
								    if(tManufType1 != null && tManufType1.equals(tGSManufactureBean.getGs_manufacture_category_id())){
								        
						%>
								<option value="<%=tGSManufactureBean.getGs_manufacture_category_id()%>" selected>
								<%=tGSManufactureBean.getGs_manufacture_category_name()%></option>
						<%			        
								    }else{
						%>
								<option value="<%=tGSManufactureBean.getGs_manufacture_category_id()%>">
								<%=tGSManufactureBean.getGs_manufacture_category_name()%></option>
								
						<%			}	
								}
							}
						%>

						</select>
						<select id="manuftype2Id" name="manuftype2" onChange="change2(this.value)">	
						<option value="0">---二级---</option>				
						<%
							String tManufType2 = request.getParameter("manuftype2");
							if(tManufType1 != null && !tManufType1.equals("0")){
							    //int tIntManuType2 = Integer.parseInt(tManufType2);
							    ArrayList temp = (ArrayList)tMap1.get(tManufType1);
							    if(temp!= null && temp.size() > 0){
									for(int i=0; i<temp.size(); i++){
									    GSManufactureCategoryBean tGSManuf2 = (GSManufactureCategoryBean)temp.get(i);
									    if(tManufType2 != null && tManufType2.equals(tGSManuf2.getGs_manufacture_category_id())){
							%>
									<option value="<%=tManufType2%>" selected><%=tGSManuf2.getGs_manufacture_category_name()%></option>
							<%			        
									    }else{
							%>
									<option value="<%=tGSManuf2.getGs_manufacture_category_id()%>"><%=tGSManuf2.getGs_manufacture_category_name()%></option>
									
							<%			}	
									}
							    }
							}
						%>

						</select>
						<select name="manuftype3" id="manuftype3Id">	
						<option value="0">---三级---</option>				
						<%
							String tManufType3 = request.getParameter("manuftype3");
							if(tManufType2 != null && !tManufType2.equals("0") ){
							    //int tIntManufType3 = Integer.parseInt(tManufType3);
							    ArrayList temp = (ArrayList)tMap2.get(tManufType2);
							    if(temp != null && temp.size() > 0){
									for(int i=0; i<temp.size(); i++){
									    GSManufactureCategoryBean tGSManuf3 = (GSManufactureCategoryBean)temp.get(i);
									    if(tManufType3 != null && tManufType3.equals(tGSManuf3.getGs_manufacture_category_id())){
							%>
									<option value="<%=tGSManuf3.getGs_manufacture_category_id()%>" selected><%=tGSManuf3.getGs_manufacture_category_name()%></option>
							<%			        
									    }else{
							%>
									<option value="<%=tGSManuf3.getGs_manufacture_category_id()%>"><%=tGSManuf3.getGs_manufacture_category_name()%></option>
									
							<%			}	
									}
							    }
							}
						%>

						</select></TD>
				</TR>								
				<TR height=20>	
					<TD class="bg_column" align=center>创建时间</TD>
					<TD align=left class="bg_row_odd" colspan="3">
					<input type="text"	name="orderCreateDateStr" value="<%=request.getParameter("orderCreateDateStr")==null?"":request.getParameter("orderCreateDateStr")%>" length="20" onfocus="setday(this)" readonly> 
					～<input type="text"	name="orderCreateDateEnd" length="20" value="<%=request.getParameter("orderCreateDateEnd")==null?"":request.getParameter("orderCreateDateEnd")%>" onfocus="setday(this)" readonly>
					</TD>
				</TR>
            <%
            ArrayList tList =new ArrayList();
            if(tOrder != null) {
                int totalRecords = 0;
                if(request.getAttribute("totalRecords")!=null){
                    totalRecords=Integer.parseInt((String)request.getAttribute("totalRecords"));
                }
                int defaultPageSize =10;
                if(request.getAttribute("pageSize")!=null){
                    defaultPageSize=Integer.parseInt((String)request.getAttribute("pageSize"));
                }
                totalRecords=tOrder.getRecordsSize();
            %>          
            <page:pager total='<%=totalRecords%>' defaultPageSize='<%=defaultPageSize%>'>
            <%tList = tOrder.getDisplayRecords(index.intValue(),pageSize.intValue()); %>
            </page:pager>
            <%} %>
			</table>
		</td>
	</tr>
</table>
</form>
    <p align="center">  
		<input type="button" class="kuang" value="查询" onclick="process('Q')"/>&nbsp;
		<input type="button" class="kuang" value="清空" onclick="process('C')"/>&nbsp;		
    </p>
<%
	
	if(tOrder != null){
%>
	<center>
    <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
		<tr>
			<td>
            <form name='pager' method="post">
            <input type="hidden" name="orderId" >
            <input type="hidden" name="orderCategory">            
            <input type="hidden" name="orderDept" >  
            <input type=hidden name=orderId>          
            	<table class=bg_table id=tableId	cellspacing=1 cellpadding=2 width=100% align=center border=0>
                    <tbody> 

                    <tr class="bg_column" height=20> 
                    	<td></td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">订单明细编号</div>
						</td>                    
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">订单明细状态</div>
						</td>                    			
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">集中编码</div>
						</td>												
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">产品名称</div>
						</td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">是否网上产品</div>
						</td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">规格</div>
						</td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">型号</div>
						</td>																																				
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">品牌</div>
						</td>											
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">供应商</div>
						</td>																									
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">订货数量</div>
						</td>										
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">单价</div>
						</td>																																				
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">总价</div>
						</td>	
						 <td class=top align=middle> 
                        <div align="center" class="txt_content">订货单位</div>
						</td>		
						 <td class=top align=middle> 
                        <div align="center" class="txt_content">送货日期</div>
						</td>																																					
						 <td class=top align=middle> 
                        <div align="center" class="txt_content">送货时间</div>
						</td>																																					
						 <td class=top align=middle> 
                        <div align="center" class="txt_content">详细</div>
						</td>																																					
					</tr>
					<%
						if(tList != null && tList.size() > 0){
						 size=tList.size();
							
						for(int i=0; i<tList.size(); i++){
							tStr = (String[])tList.get(i);
							String tTempStr="";
							if(i%2==0){
								tTempStr="class=\"bg_row_odd\"";
							}else {
								tTempStr="class=\"bg_row_even\"";
							}
					%>
							<tr <%=tTempStr%> height=20>
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									 <input type=radio name=orderdetailId value="<%=tStr[0]%>,<%=tStr[18]%>.">
									 							    
									 </div>
								</td>							
								<td class=top align=middle> 								
									<div align="center" class="txt_content">
									<%=tStr[0]%>
									</div>
								</td>	
								<td class=top align=middle> 								
									<div align="center" class="txt_content">
									<%=tStr[1]%>
									</div>
								</td>									
								<td class=top align=middle> 								
									<div align="center" class="txt_content">
									<%=tStr[2]%>
									</div>
								</td>	
								<td class=top align=middle> 
									<div align="center" class="txt_content">
<!--									<a href="<%= response.encodeURL(request.getContextPath() + "/A150103.do") %>?concentricityId=<%=tStr[2]%>" target="_blank"><%=tStr[3]%></a>-->

									<a href="<%=response.encodeURL(root+"/A150103.do")%>?concentricityId=<%=tStr[2]%>" target="_blank"><%=tStr[3]%></a>
									</div>
								</td>														
								<td class=top align=middle > 								
									<div align="center" class="txt_content">
									<%=tStr[4]%>
									</div>
								</td>	
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[5]%>
									</div>
								</td>				
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[6]%>
									</div>
								</td>													
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[7]%>
									</div>
								</td>
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<a href="<%=response.encodeURL(root+"/A400108.do")%>?providerId=<%=tStr[19]%>" target=_blank>
									<%=tStr[8]%>
									</a>
									<%
									if(tStr[17].equals("0")&&tStr[20].equals("0")){
									    out.println("(采购网配送)");
									   
									}
									%>
									</div>
								</td>								
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[9]%><%=tStr[10]%>
									</div>
								</td>								
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[11]%>元
									</div>
								</td>	
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[15]%>元
									</div>
								</td>
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[12]%>
									</div>
								</td>	
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[13]%>
									</div>
								</td>	
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[14]%>
									</div>
								</td>																												
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<a href="<%= response.encodeURL(request.getContextPath() + "/A150505.do") %>?orderId=<%=tStr[18]%>&orderDetailId=<%=tStr[0]%>" target="_blank">
									详细
									</a>
									</div>
								</td>																																								
							</tr> 
					<%
						}
					%>
						  <tr class="bg_column" height=20>
						    <td width="960" height="16" colspan="17" align="right">
									<!--导航条-->
						    		<page:navigator type='text' queryForm='orderrefundform'/>
						    </td>
						  </tr>					
				    <%
						}else{
					%>
							<font color="red">没有符合条件的产品订单信息</font>
					<%
						}
					%>
					</tbody>
				</table>
				</form>					  
			</td>
		</tr>
	</table>
		<p align="center">
	<%
		if(size > 0){
	%>
    <input type="button" class="kuang" value="订单退货" onclick="process('T')">&nbsp;
	<!--<input type="image" src="images/button/dayin.gif" width="86" height="24" class="box" onclick="process('P')"/>&nbsp; -->
	<%
		}
	%>
       </p>
	</center>
	
	  
		
<%		
	}
	if(tOrder == null && isRequery != null && isRequery.equals("true")){
%>
	<font size="2">数据查询中......</font>
<%	    
	}
%>
</html>